package com.miao.elm.feign;

import com.miao.elm.to.CartTo;
import com.miao.elm.to.FoodTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("cart-server")
public interface CartFeignClient {

    @RequestMapping("/FoodController/listCart")
    List<FoodTo> listCart(CartTo cartTo);

    @PostMapping("/FoodController/removeCart")
    int removeCart(CartTo cartTo);

}
